#ifndef SIERPINSKI_H
#define SIERPINSKI_H

#include "GLDrawble.h"

class Sierpinski : public GLDrawble
{
protected:
    unsigned int numero;
    Point2f a;
    Point2f b;
    Point2f c;
    Point2f pontoMedio(Point2f p1, Point2f p2);
    void draw_recursivo(Point2f a, Point2f b, Point2f c, unsigned int numero);

public:
    Sierpinski(Point2f a, Point2f b, Point2f c, unsigned int numero);
    void draw();

};

#endif // SIERPINSKI_H
